/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dale2507.gates.data.permissions.bukkit;

import dale2507.gates.data.permissions.ICreationPermissions;
import org.bukkit.World;
import org.bukkit.entity.Player;

/**
 *
 * @author Dale
 */
public class CreationPermissions implements ICreationPermissions {
    
    private static final String PREFIX = "create.";

    @Override
    public boolean allowGateCreatePublic(Player p) {
        return p.hasPermission(BukkitPermissions.PREFIX + CreationPermissions.PREFIX + "public");
    }

    @Override
    public boolean allowGateCreateHidden(Player p) {
        return p.hasPermission(BukkitPermissions.PREFIX + CreationPermissions.PREFIX + "hidden");
    }

    @Override
    public boolean allowGateCreatePrivate(Player p) {
        return p.hasPermission(BukkitPermissions.PREFIX + CreationPermissions.PREFIX + "private");
    }

    @Override
    public boolean allowGateCreateWithIris(Player p) {
        return p.hasPermission(BukkitPermissions.PREFIX + CreationPermissions.PREFIX + "extras.iris");
    }

    @Override
    public boolean allowGateCreateIndefinite(Player p) {
        return p.hasPermission(BukkitPermissions.PREFIX + CreationPermissions.PREFIX + "extras.indefinite");
    }
    
}
